#include "testpageimagesparser.h"
#include "../pageimagesparser.h"
#include "../utils.h"

testPageImagesParser::testPageImagesParser(QObject *parent) : QObject(parent)
{
    Jcr::PageImagesParser* pip = new Jcr::PageImagesParser;
    pip->setWriteFile("G:/baidu_image.html");
//        pip->setUrl(QUrl("http://image.baidu.com/search/index?tn=baiduimage&ps=1&ct=201326592&lm=-1&cl=2&nc=1&ie=utf-8&word=%E5%B7%9D%E5%B4%8E250"));
    pip->setUrl(QUrl("http://cn.bing.com/images/search?q=kawasaki+ninja+250&FORM=HDRSC2"));
    Jcr::Utils::runByThread(pip);
}

